package com.study.结构型模式.外观模式;

public class Projector {

    private Projector(){}

    private static final class Instance{
        public static final Projector instance = new Projector();
    }

    public static Projector getInstance(){
        return Instance.instance;
    }

    public void on(){
        System.out.println("Projector on");
    }

    public void off(){
        System.out.println("Projector off");
    }

    public void focus(){
        System.out.println("Projector is focusing");
    }
}
